# Author: Kuilin

# 按照字面创建列表
# 知识点1：变量名在赋值操作符左边，字面列表在右边
# 例如：
# prices = []

# 知识点2：对象用逗号隔开
# 举例1：浮点数列表
# temps = [32.0,14.0,23.0,44.0]

# 举例2：字串符列表
# words = ['hello','world']

# 举例3：复合列表
# cars_details = ['Tesla','Model 3','50w-100w']

# 知识点3：对象可以是包含列表的对象
# 举例4：
# everything = [prices,temps,words,cars_details]

# 知识点4：包含字面列表的字面列表
# 举例5：
# odds_and_ends = [[1,2,3],['a','b','c'],['one','two','three']]

# 使用列表
# vowels = ['a','b','c','d','e','f']
# words = "abandon"

# for letter in words:
    # if letter in vowels:
        # print(letter)


# 方法2
vowels = ['a','b','c','d','e','f']
words = "abandon"
found = []

for letter in words:
    if letter in vowels:
        if letter not in found:
            found.append(letter)
for vowel in found:
        print(vowel)
